<h1>学员列表</h1>
<table class="easyui-datagrid list-table" style="width: 600px;height:auto;">
  <thead>
    <tr>
      <th field="sid" width="110" align="center">SID</th>
      <th field="name" width="110" align="center">姓名</th>
      <th field="teacher" width="110" align="center">指导老师</th>
      <th field="operation" width="240" align="center">操作</th>
    </tr>
  </thead>
  <tbody>
    <% @students.each do |student| %>
      <tr>
        <td><%= student.sid %></td>
        <td><%= student.name %></td>
        <td><%= student.teacher.name %></td>
        <td><%= link_to "学员面板",{:action=>'show',:id=>student} %> | <%= link_to "删除", :action=>'destroy', :id=>student %>  | <%= link_to "编辑", {:action => 'edit',:id=> student}%> </td> 
      </tr>
    <% end %>
  </tbody>
</table>
